Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 900 Bytes

<model>s_browse_params.rst

File metadata and controls

53 lines (37 loc) · 900 Bytes

<model>s_browse_params

Usage

Filters the parameters used when generating the browse page for records (the model)

Note

Use the plural form of the <model>

Value

array $params

Params passed to the browse query. May include both filtering and sorting parameters

Arguments

None

Examples

class MyPlugin extends Omeka_Plugin_AbstractPlugin
{

    protected $_filters = array('items_browse_params');

    public function filterItemsBrowseParams($params)
    {
        //always sort by title instead of order
        $params['sort_field'] = "Dublin Core,Title";
        return $params;
    }    
}

See Also

  • modelbrowsesql
  • :phpOmeka_Db_Table::getSelectForFindBy